import Router from 'koa-router';
import { authMiddleware } from '../../middleware/auth';
import { ApiResponse } from '../../types';

const router = new Router({ prefix: '/api/user' });

// 获取用户列表（管理员功能）
router.get('/', authMiddleware, async (ctx) => {
  ctx.body = {
    success: true,
    data: [],
    message: '用户列表功能待实现'
  } as ApiResponse;
});

// 获取用户详情
router.get('/:id', authMiddleware, async (ctx) => {
  const { id } = ctx.params;
  ctx.body = {
    success: true,
    data: { id },
    message: '用户详情功能待实现'
  } as ApiResponse;
});

export default router; 